﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 生命体征测试仪
{
    public partial class formChoice : formBase
    {
        public formChoice()
        {
            InitializeComponent();
        }
        private void skinButton2_Click(object sender, EventArgs e)
        {
            formMain.PType = 0;
            timer1.Enabled = false;
            this.Close();
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            formMain.PType = 1;
            timer1.Enabled = false;
            this.Close();
        }

        private void skinButton3_Click(object sender, EventArgs e)
        {
            formMain.PType = -1;
            timer1.Enabled = false;
            this.Close();
        }
        int left = 20;
        private void timer1_Tick(object sender, EventArgs e)
        {
            left--;
            skinLabel3.Text = left.ToString();
            if (left == 0)
            {
                formMain.PType = -1;
                this.Close();
            }            
        }

        private void formChoice_Load(object sender, EventArgs e)
        {

        }
    }
}
